package com.thinkit.bigdata.web.model.sys;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SysApprovalTaskExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SysApprovalTaskExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andProvincecodeIsNull() {
            addCriterion("provinceCode is null");
            return (Criteria) this;
        }

        public Criteria andProvincecodeIsNotNull() {
            addCriterion("provinceCode is not null");
            return (Criteria) this;
        }

        public Criteria andProvincecodeEqualTo(String value) {
            addCriterion("provinceCode =", value, "provincecode");
            return (Criteria) this;
        }

        public Criteria andProvincecodeNotEqualTo(String value) {
            addCriterion("provinceCode <>", value, "provincecode");
            return (Criteria) this;
        }

        public Criteria andProvincecodeGreaterThan(String value) {
            addCriterion("provinceCode >", value, "provincecode");
            return (Criteria) this;
        }

        public Criteria andProvincecodeGreaterThanOrEqualTo(String value) {
            addCriterion("provinceCode >=", value, "provincecode");
            return (Criteria) this;
        }

        public Criteria andProvincecodeLessThan(String value) {
            addCriterion("provinceCode <", value, "provincecode");
            return (Criteria) this;
        }

        public Criteria andProvincecodeLessThanOrEqualTo(String value) {
            addCriterion("provinceCode <=", value, "provincecode");
            return (Criteria) this;
        }

        public Criteria andProvincecodeLike(String value) {
            addCriterion("provinceCode like", value, "provincecode");
            return (Criteria) this;
        }

        public Criteria andProvincecodeNotLike(String value) {
            addCriterion("provinceCode not like", value, "provincecode");
            return (Criteria) this;
        }

        public Criteria andProvincecodeIn(List<String> values) {
            addCriterion("provinceCode in", values, "provincecode");
            return (Criteria) this;
        }

        public Criteria andProvincecodeNotIn(List<String> values) {
            addCriterion("provinceCode not in", values, "provincecode");
            return (Criteria) this;
        }

        public Criteria andProvincecodeBetween(String value1, String value2) {
            addCriterion("provinceCode between", value1, value2, "provincecode");
            return (Criteria) this;
        }

        public Criteria andProvincecodeNotBetween(String value1, String value2) {
            addCriterion("provinceCode not between", value1, value2, "provincecode");
            return (Criteria) this;
        }

        public Criteria andDatacodeIsNull() {
            addCriterion("dataCode is null");
            return (Criteria) this;
        }

        public Criteria andDatacodeIsNotNull() {
            addCriterion("dataCode is not null");
            return (Criteria) this;
        }

        public Criteria andDatacodeEqualTo(String value) {
            addCriterion("dataCode =", value, "datacode");
            return (Criteria) this;
        }

        public Criteria andDatacodeNotEqualTo(String value) {
            addCriterion("dataCode <>", value, "datacode");
            return (Criteria) this;
        }

        public Criteria andDatacodeGreaterThan(String value) {
            addCriterion("dataCode >", value, "datacode");
            return (Criteria) this;
        }

        public Criteria andDatacodeGreaterThanOrEqualTo(String value) {
            addCriterion("dataCode >=", value, "datacode");
            return (Criteria) this;
        }

        public Criteria andDatacodeLessThan(String value) {
            addCriterion("dataCode <", value, "datacode");
            return (Criteria) this;
        }

        public Criteria andDatacodeLessThanOrEqualTo(String value) {
            addCriterion("dataCode <=", value, "datacode");
            return (Criteria) this;
        }

        public Criteria andDatacodeLike(String value) {
            addCriterion("dataCode like", value, "datacode");
            return (Criteria) this;
        }

        public Criteria andDatacodeNotLike(String value) {
            addCriterion("dataCode not like", value, "datacode");
            return (Criteria) this;
        }

        public Criteria andDatacodeIn(List<String> values) {
            addCriterion("dataCode in", values, "datacode");
            return (Criteria) this;
        }

        public Criteria andDatacodeNotIn(List<String> values) {
            addCriterion("dataCode not in", values, "datacode");
            return (Criteria) this;
        }

        public Criteria andDatacodeBetween(String value1, String value2) {
            addCriterion("dataCode between", value1, value2, "datacode");
            return (Criteria) this;
        }

        public Criteria andDatacodeNotBetween(String value1, String value2) {
            addCriterion("dataCode not between", value1, value2, "datacode");
            return (Criteria) this;
        }

        public Criteria andCreateuseridIsNull() {
            addCriterion("createUserId is null");
            return (Criteria) this;
        }

        public Criteria andCreateuseridIsNotNull() {
            addCriterion("createUserId is not null");
            return (Criteria) this;
        }

        public Criteria andCreateuseridEqualTo(Long value) {
            addCriterion("createUserId =", value, "createuserid");
            return (Criteria) this;
        }

        public Criteria andCreateuseridNotEqualTo(Long value) {
            addCriterion("createUserId <>", value, "createuserid");
            return (Criteria) this;
        }

        public Criteria andCreateuseridGreaterThan(Long value) {
            addCriterion("createUserId >", value, "createuserid");
            return (Criteria) this;
        }

        public Criteria andCreateuseridGreaterThanOrEqualTo(Long value) {
            addCriterion("createUserId >=", value, "createuserid");
            return (Criteria) this;
        }

        public Criteria andCreateuseridLessThan(Long value) {
            addCriterion("createUserId <", value, "createuserid");
            return (Criteria) this;
        }

        public Criteria andCreateuseridLessThanOrEqualTo(Long value) {
            addCriterion("createUserId <=", value, "createuserid");
            return (Criteria) this;
        }

        public Criteria andCreateuseridIn(List<Long> values) {
            addCriterion("createUserId in", values, "createuserid");
            return (Criteria) this;
        }

        public Criteria andCreateuseridNotIn(List<Long> values) {
            addCriterion("createUserId not in", values, "createuserid");
            return (Criteria) this;
        }

        public Criteria andCreateuseridBetween(Long value1, Long value2) {
            addCriterion("createUserId between", value1, value2, "createuserid");
            return (Criteria) this;
        }

        public Criteria andCreateuseridNotBetween(Long value1, Long value2) {
            addCriterion("createUserId not between", value1, value2, "createuserid");
            return (Criteria) this;
        }

        public Criteria andCreateuserIsNull() {
            addCriterion("createUser is null");
            return (Criteria) this;
        }

        public Criteria andCreateuserIsNotNull() {
            addCriterion("createUser is not null");
            return (Criteria) this;
        }

        public Criteria andCreateuserEqualTo(String value) {
            addCriterion("createUser =", value, "createuser");
            return (Criteria) this;
        }

        public Criteria andCreateuserNotEqualTo(String value) {
            addCriterion("createUser <>", value, "createuser");
            return (Criteria) this;
        }

        public Criteria andCreateuserGreaterThan(String value) {
            addCriterion("createUser >", value, "createuser");
            return (Criteria) this;
        }

        public Criteria andCreateuserGreaterThanOrEqualTo(String value) {
            addCriterion("createUser >=", value, "createuser");
            return (Criteria) this;
        }

        public Criteria andCreateuserLessThan(String value) {
            addCriterion("createUser <", value, "createuser");
            return (Criteria) this;
        }

        public Criteria andCreateuserLessThanOrEqualTo(String value) {
            addCriterion("createUser <=", value, "createuser");
            return (Criteria) this;
        }

        public Criteria andCreateuserLike(String value) {
            addCriterion("createUser like", value, "createuser");
            return (Criteria) this;
        }

        public Criteria andCreateuserNotLike(String value) {
            addCriterion("createUser not like", value, "createuser");
            return (Criteria) this;
        }

        public Criteria andCreateuserIn(List<String> values) {
            addCriterion("createUser in", values, "createuser");
            return (Criteria) this;
        }

        public Criteria andCreateuserNotIn(List<String> values) {
            addCriterion("createUser not in", values, "createuser");
            return (Criteria) this;
        }

        public Criteria andCreateuserBetween(String value1, String value2) {
            addCriterion("createUser between", value1, value2, "createuser");
            return (Criteria) this;
        }

        public Criteria andCreateuserNotBetween(String value1, String value2) {
            addCriterion("createUser not between", value1, value2, "createuser");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createTime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("createTime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("createTime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("createTime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("createTime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("createTime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("createTime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("createTime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("createTime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("createTime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("createTime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andApprovalstatusIsNull() {
            addCriterion("approvalStatus is null");
            return (Criteria) this;
        }

        public Criteria andApprovalstatusIsNotNull() {
            addCriterion("approvalStatus is not null");
            return (Criteria) this;
        }

        public Criteria andApprovalstatusEqualTo(Integer value) {
            addCriterion("approvalStatus =", value, "approvalstatus");
            return (Criteria) this;
        }

        public Criteria andApprovalstatusNotEqualTo(Integer value) {
            addCriterion("approvalStatus <>", value, "approvalstatus");
            return (Criteria) this;
        }

        public Criteria andApprovalstatusGreaterThan(Integer value) {
            addCriterion("approvalStatus >", value, "approvalstatus");
            return (Criteria) this;
        }

        public Criteria andApprovalstatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("approvalStatus >=", value, "approvalstatus");
            return (Criteria) this;
        }

        public Criteria andApprovalstatusLessThan(Integer value) {
            addCriterion("approvalStatus <", value, "approvalstatus");
            return (Criteria) this;
        }

        public Criteria andApprovalstatusLessThanOrEqualTo(Integer value) {
            addCriterion("approvalStatus <=", value, "approvalstatus");
            return (Criteria) this;
        }

        public Criteria andApprovalstatusIn(List<Integer> values) {
            addCriterion("approvalStatus in", values, "approvalstatus");
            return (Criteria) this;
        }

        public Criteria andApprovalstatusNotIn(List<Integer> values) {
            addCriterion("approvalStatus not in", values, "approvalstatus");
            return (Criteria) this;
        }

        public Criteria andApprovalstatusBetween(Integer value1, Integer value2) {
            addCriterion("approvalStatus between", value1, value2, "approvalstatus");
            return (Criteria) this;
        }

        public Criteria andApprovalstatusNotBetween(Integer value1, Integer value2) {
            addCriterion("approvalStatus not between", value1, value2, "approvalstatus");
            return (Criteria) this;
        }

        public Criteria andNoteIsNull() {
            addCriterion("note is null");
            return (Criteria) this;
        }

        public Criteria andNoteIsNotNull() {
            addCriterion("note is not null");
            return (Criteria) this;
        }

        public Criteria andNoteEqualTo(String value) {
            addCriterion("note =", value, "note");
            return (Criteria) this;
        }

        public Criteria andNoteNotEqualTo(String value) {
            addCriterion("note <>", value, "note");
            return (Criteria) this;
        }

        public Criteria andNoteGreaterThan(String value) {
            addCriterion("note >", value, "note");
            return (Criteria) this;
        }

        public Criteria andNoteGreaterThanOrEqualTo(String value) {
            addCriterion("note >=", value, "note");
            return (Criteria) this;
        }

        public Criteria andNoteLessThan(String value) {
            addCriterion("note <", value, "note");
            return (Criteria) this;
        }

        public Criteria andNoteLessThanOrEqualTo(String value) {
            addCriterion("note <=", value, "note");
            return (Criteria) this;
        }

        public Criteria andNoteLike(String value) {
            addCriterion("note like", value, "note");
            return (Criteria) this;
        }

        public Criteria andNoteNotLike(String value) {
            addCriterion("note not like", value, "note");
            return (Criteria) this;
        }

        public Criteria andNoteIn(List<String> values) {
            addCriterion("note in", values, "note");
            return (Criteria) this;
        }

        public Criteria andNoteNotIn(List<String> values) {
            addCriterion("note not in", values, "note");
            return (Criteria) this;
        }

        public Criteria andNoteBetween(String value1, String value2) {
            addCriterion("note between", value1, value2, "note");
            return (Criteria) this;
        }

        public Criteria andNoteNotBetween(String value1, String value2) {
            addCriterion("note not between", value1, value2, "note");
            return (Criteria) this;
        }

        public Criteria andLinenumberIsNull() {
            addCriterion("lineNumber is null");
            return (Criteria) this;
        }

        public Criteria andLinenumberIsNotNull() {
            addCriterion("lineNumber is not null");
            return (Criteria) this;
        }

        public Criteria andLinenumberEqualTo(Long value) {
            addCriterion("lineNumber =", value, "linenumber");
            return (Criteria) this;
        }

        public Criteria andLinenumberNotEqualTo(Long value) {
            addCriterion("lineNumber <>", value, "linenumber");
            return (Criteria) this;
        }

        public Criteria andLinenumberGreaterThan(Long value) {
            addCriterion("lineNumber >", value, "linenumber");
            return (Criteria) this;
        }

        public Criteria andLinenumberGreaterThanOrEqualTo(Long value) {
            addCriterion("lineNumber >=", value, "linenumber");
            return (Criteria) this;
        }

        public Criteria andLinenumberLessThan(Long value) {
            addCriterion("lineNumber <", value, "linenumber");
            return (Criteria) this;
        }

        public Criteria andLinenumberLessThanOrEqualTo(Long value) {
            addCriterion("lineNumber <=", value, "linenumber");
            return (Criteria) this;
        }

        public Criteria andLinenumberIn(List<Long> values) {
            addCriterion("lineNumber in", values, "linenumber");
            return (Criteria) this;
        }

        public Criteria andLinenumberNotIn(List<Long> values) {
            addCriterion("lineNumber not in", values, "linenumber");
            return (Criteria) this;
        }

        public Criteria andLinenumberBetween(Long value1, Long value2) {
            addCriterion("lineNumber between", value1, value2, "linenumber");
            return (Criteria) this;
        }

        public Criteria andLinenumberNotBetween(Long value1, Long value2) {
            addCriterion("lineNumber not between", value1, value2, "linenumber");
            return (Criteria) this;
        }

        public Criteria andLinenumbernameIsNull() {
            addCriterion("lineNumberName is null");
            return (Criteria) this;
        }

        public Criteria andLinenumbernameIsNotNull() {
            addCriterion("lineNumberName is not null");
            return (Criteria) this;
        }

        public Criteria andLinenumbernameEqualTo(String value) {
            addCriterion("lineNumberName =", value, "linenumbername");
            return (Criteria) this;
        }

        public Criteria andLinenumbernameNotEqualTo(String value) {
            addCriterion("lineNumberName <>", value, "linenumbername");
            return (Criteria) this;
        }

        public Criteria andLinenumbernameGreaterThan(String value) {
            addCriterion("lineNumberName >", value, "linenumbername");
            return (Criteria) this;
        }

        public Criteria andLinenumbernameGreaterThanOrEqualTo(String value) {
            addCriterion("lineNumberName >=", value, "linenumbername");
            return (Criteria) this;
        }

        public Criteria andLinenumbernameLessThan(String value) {
            addCriterion("lineNumberName <", value, "linenumbername");
            return (Criteria) this;
        }

        public Criteria andLinenumbernameLessThanOrEqualTo(String value) {
            addCriterion("lineNumberName <=", value, "linenumbername");
            return (Criteria) this;
        }

        public Criteria andLinenumbernameLike(String value) {
            addCriterion("lineNumberName like", value, "linenumbername");
            return (Criteria) this;
        }

        public Criteria andLinenumbernameNotLike(String value) {
            addCriterion("lineNumberName not like", value, "linenumbername");
            return (Criteria) this;
        }

        public Criteria andLinenumbernameIn(List<String> values) {
            addCriterion("lineNumberName in", values, "linenumbername");
            return (Criteria) this;
        }

        public Criteria andLinenumbernameNotIn(List<String> values) {
            addCriterion("lineNumberName not in", values, "linenumbername");
            return (Criteria) this;
        }

        public Criteria andLinenumbernameBetween(String value1, String value2) {
            addCriterion("lineNumberName between", value1, value2, "linenumbername");
            return (Criteria) this;
        }

        public Criteria andLinenumbernameNotBetween(String value1, String value2) {
            addCriterion("lineNumberName not between", value1, value2, "linenumbername");
            return (Criteria) this;
        }

        public Criteria andToapprovalroleidIsNull() {
            addCriterion("toApprovalRoleId is null");
            return (Criteria) this;
        }

        public Criteria andToapprovalroleidIsNotNull() {
            addCriterion("toApprovalRoleId is not null");
            return (Criteria) this;
        }

        public Criteria andToapprovalroleidEqualTo(Long value) {
            addCriterion("toApprovalRoleId =", value, "toapprovalroleid");
            return (Criteria) this;
        }

        public Criteria andToapprovalroleidNotEqualTo(Long value) {
            addCriterion("toApprovalRoleId <>", value, "toapprovalroleid");
            return (Criteria) this;
        }

        public Criteria andToapprovalroleidGreaterThan(Long value) {
            addCriterion("toApprovalRoleId >", value, "toapprovalroleid");
            return (Criteria) this;
        }

        public Criteria andToapprovalroleidGreaterThanOrEqualTo(Long value) {
            addCriterion("toApprovalRoleId >=", value, "toapprovalroleid");
            return (Criteria) this;
        }

        public Criteria andToapprovalroleidLessThan(Long value) {
            addCriterion("toApprovalRoleId <", value, "toapprovalroleid");
            return (Criteria) this;
        }

        public Criteria andToapprovalroleidLessThanOrEqualTo(Long value) {
            addCriterion("toApprovalRoleId <=", value, "toapprovalroleid");
            return (Criteria) this;
        }

        public Criteria andToapprovalroleidIn(List<Long> values) {
            addCriterion("toApprovalRoleId in", values, "toapprovalroleid");
            return (Criteria) this;
        }

        public Criteria andToapprovalroleidNotIn(List<Long> values) {
            addCriterion("toApprovalRoleId not in", values, "toapprovalroleid");
            return (Criteria) this;
        }

        public Criteria andToapprovalroleidBetween(Long value1, Long value2) {
            addCriterion("toApprovalRoleId between", value1, value2, "toapprovalroleid");
            return (Criteria) this;
        }

        public Criteria andToapprovalroleidNotBetween(Long value1, Long value2) {
            addCriterion("toApprovalRoleId not between", value1, value2, "toapprovalroleid");
            return (Criteria) this;
        }

        public Criteria andToapprovalroleIsNull() {
            addCriterion("toApprovalRole is null");
            return (Criteria) this;
        }

        public Criteria andToapprovalroleIsNotNull() {
            addCriterion("toApprovalRole is not null");
            return (Criteria) this;
        }

        public Criteria andToapprovalroleEqualTo(String value) {
            addCriterion("toApprovalRole =", value, "toapprovalrole");
            return (Criteria) this;
        }

        public Criteria andToapprovalroleNotEqualTo(String value) {
            addCriterion("toApprovalRole <>", value, "toapprovalrole");
            return (Criteria) this;
        }

        public Criteria andToapprovalroleGreaterThan(String value) {
            addCriterion("toApprovalRole >", value, "toapprovalrole");
            return (Criteria) this;
        }

        public Criteria andToapprovalroleGreaterThanOrEqualTo(String value) {
            addCriterion("toApprovalRole >=", value, "toapprovalrole");
            return (Criteria) this;
        }

        public Criteria andToapprovalroleLessThan(String value) {
            addCriterion("toApprovalRole <", value, "toapprovalrole");
            return (Criteria) this;
        }

        public Criteria andToapprovalroleLessThanOrEqualTo(String value) {
            addCriterion("toApprovalRole <=", value, "toapprovalrole");
            return (Criteria) this;
        }

        public Criteria andToapprovalroleLike(String value) {
            addCriterion("toApprovalRole like", value, "toapprovalrole");
            return (Criteria) this;
        }

        public Criteria andToapprovalroleNotLike(String value) {
            addCriterion("toApprovalRole not like", value, "toapprovalrole");
            return (Criteria) this;
        }

        public Criteria andToapprovalroleIn(List<String> values) {
            addCriterion("toApprovalRole in", values, "toapprovalrole");
            return (Criteria) this;
        }

        public Criteria andToapprovalroleNotIn(List<String> values) {
            addCriterion("toApprovalRole not in", values, "toapprovalrole");
            return (Criteria) this;
        }

        public Criteria andToapprovalroleBetween(String value1, String value2) {
            addCriterion("toApprovalRole between", value1, value2, "toapprovalrole");
            return (Criteria) this;
        }

        public Criteria andToapprovalroleNotBetween(String value1, String value2) {
            addCriterion("toApprovalRole not between", value1, value2, "toapprovalrole");
            return (Criteria) this;
        }

        public Criteria andLastapprovaluserIsNull() {
            addCriterion("lastApprovalUser is null");
            return (Criteria) this;
        }

        public Criteria andLastapprovaluserIsNotNull() {
            addCriterion("lastApprovalUser is not null");
            return (Criteria) this;
        }

        public Criteria andLastapprovaluserEqualTo(Long value) {
            addCriterion("lastApprovalUser =", value, "lastapprovaluser");
            return (Criteria) this;
        }

        public Criteria andLastapprovaluserNotEqualTo(Long value) {
            addCriterion("lastApprovalUser <>", value, "lastapprovaluser");
            return (Criteria) this;
        }

        public Criteria andLastapprovaluserGreaterThan(Long value) {
            addCriterion("lastApprovalUser >", value, "lastapprovaluser");
            return (Criteria) this;
        }

        public Criteria andLastapprovaluserGreaterThanOrEqualTo(Long value) {
            addCriterion("lastApprovalUser >=", value, "lastapprovaluser");
            return (Criteria) this;
        }

        public Criteria andLastapprovaluserLessThan(Long value) {
            addCriterion("lastApprovalUser <", value, "lastapprovaluser");
            return (Criteria) this;
        }

        public Criteria andLastapprovaluserLessThanOrEqualTo(Long value) {
            addCriterion("lastApprovalUser <=", value, "lastapprovaluser");
            return (Criteria) this;
        }

        public Criteria andLastapprovaluserIn(List<Long> values) {
            addCriterion("lastApprovalUser in", values, "lastapprovaluser");
            return (Criteria) this;
        }

        public Criteria andLastapprovaluserNotIn(List<Long> values) {
            addCriterion("lastApprovalUser not in", values, "lastapprovaluser");
            return (Criteria) this;
        }

        public Criteria andLastapprovaluserBetween(Long value1, Long value2) {
            addCriterion("lastApprovalUser between", value1, value2, "lastapprovaluser");
            return (Criteria) this;
        }

        public Criteria andLastapprovaluserNotBetween(Long value1, Long value2) {
            addCriterion("lastApprovalUser not between", value1, value2, "lastapprovaluser");
            return (Criteria) this;
        }

        public Criteria andLastapprovaltimeIsNull() {
            addCriterion("lastApprovalTime is null");
            return (Criteria) this;
        }

        public Criteria andLastapprovaltimeIsNotNull() {
            addCriterion("lastApprovalTime is not null");
            return (Criteria) this;
        }

        public Criteria andLastapprovaltimeEqualTo(Date value) {
            addCriterion("lastApprovalTime =", value, "lastapprovaltime");
            return (Criteria) this;
        }

        public Criteria andLastapprovaltimeNotEqualTo(Date value) {
            addCriterion("lastApprovalTime <>", value, "lastapprovaltime");
            return (Criteria) this;
        }

        public Criteria andLastapprovaltimeGreaterThan(Date value) {
            addCriterion("lastApprovalTime >", value, "lastapprovaltime");
            return (Criteria) this;
        }

        public Criteria andLastapprovaltimeGreaterThanOrEqualTo(Date value) {
            addCriterion("lastApprovalTime >=", value, "lastapprovaltime");
            return (Criteria) this;
        }

        public Criteria andLastapprovaltimeLessThan(Date value) {
            addCriterion("lastApprovalTime <", value, "lastapprovaltime");
            return (Criteria) this;
        }

        public Criteria andLastapprovaltimeLessThanOrEqualTo(Date value) {
            addCriterion("lastApprovalTime <=", value, "lastapprovaltime");
            return (Criteria) this;
        }

        public Criteria andLastapprovaltimeIn(List<Date> values) {
            addCriterion("lastApprovalTime in", values, "lastapprovaltime");
            return (Criteria) this;
        }

        public Criteria andLastapprovaltimeNotIn(List<Date> values) {
            addCriterion("lastApprovalTime not in", values, "lastapprovaltime");
            return (Criteria) this;
        }

        public Criteria andLastapprovaltimeBetween(Date value1, Date value2) {
            addCriterion("lastApprovalTime between", value1, value2, "lastapprovaltime");
            return (Criteria) this;
        }

        public Criteria andLastapprovaltimeNotBetween(Date value1, Date value2) {
            addCriterion("lastApprovalTime not between", value1, value2, "lastapprovaltime");
            return (Criteria) this;
        }

        public Criteria andLastapprovalnoteIsNull() {
            addCriterion("lastApprovalNote is null");
            return (Criteria) this;
        }

        public Criteria andLastapprovalnoteIsNotNull() {
            addCriterion("lastApprovalNote is not null");
            return (Criteria) this;
        }

        public Criteria andLastapprovalnoteEqualTo(String value) {
            addCriterion("lastApprovalNote =", value, "lastapprovalnote");
            return (Criteria) this;
        }

        public Criteria andLastapprovalnoteNotEqualTo(String value) {
            addCriterion("lastApprovalNote <>", value, "lastapprovalnote");
            return (Criteria) this;
        }

        public Criteria andLastapprovalnoteGreaterThan(String value) {
            addCriterion("lastApprovalNote >", value, "lastapprovalnote");
            return (Criteria) this;
        }

        public Criteria andLastapprovalnoteGreaterThanOrEqualTo(String value) {
            addCriterion("lastApprovalNote >=", value, "lastapprovalnote");
            return (Criteria) this;
        }

        public Criteria andLastapprovalnoteLessThan(String value) {
            addCriterion("lastApprovalNote <", value, "lastapprovalnote");
            return (Criteria) this;
        }

        public Criteria andLastapprovalnoteLessThanOrEqualTo(String value) {
            addCriterion("lastApprovalNote <=", value, "lastapprovalnote");
            return (Criteria) this;
        }

        public Criteria andLastapprovalnoteLike(String value) {
            addCriterion("lastApprovalNote like", value, "lastapprovalnote");
            return (Criteria) this;
        }

        public Criteria andLastapprovalnoteNotLike(String value) {
            addCriterion("lastApprovalNote not like", value, "lastapprovalnote");
            return (Criteria) this;
        }

        public Criteria andLastapprovalnoteIn(List<String> values) {
            addCriterion("lastApprovalNote in", values, "lastapprovalnote");
            return (Criteria) this;
        }

        public Criteria andLastapprovalnoteNotIn(List<String> values) {
            addCriterion("lastApprovalNote not in", values, "lastapprovalnote");
            return (Criteria) this;
        }

        public Criteria andLastapprovalnoteBetween(String value1, String value2) {
            addCriterion("lastApprovalNote between", value1, value2, "lastapprovalnote");
            return (Criteria) this;
        }

        public Criteria andLastapprovalnoteNotBetween(String value1, String value2) {
            addCriterion("lastApprovalNote not between", value1, value2, "lastapprovalnote");
            return (Criteria) this;
        }

        public Criteria andLastexporttimeIsNull() {
            addCriterion("lastExportTime is null");
            return (Criteria) this;
        }

        public Criteria andLastexporttimeIsNotNull() {
            addCriterion("lastExportTime is not null");
            return (Criteria) this;
        }

        public Criteria andLastexporttimeEqualTo(Date value) {
            addCriterion("lastExportTime =", value, "lastexporttime");
            return (Criteria) this;
        }

        public Criteria andLastexporttimeNotEqualTo(Date value) {
            addCriterion("lastExportTime <>", value, "lastexporttime");
            return (Criteria) this;
        }

        public Criteria andLastexporttimeGreaterThan(Date value) {
            addCriterion("lastExportTime >", value, "lastexporttime");
            return (Criteria) this;
        }

        public Criteria andLastexporttimeGreaterThanOrEqualTo(Date value) {
            addCriterion("lastExportTime >=", value, "lastexporttime");
            return (Criteria) this;
        }

        public Criteria andLastexporttimeLessThan(Date value) {
            addCriterion("lastExportTime <", value, "lastexporttime");
            return (Criteria) this;
        }

        public Criteria andLastexporttimeLessThanOrEqualTo(Date value) {
            addCriterion("lastExportTime <=", value, "lastexporttime");
            return (Criteria) this;
        }

        public Criteria andLastexporttimeIn(List<Date> values) {
            addCriterion("lastExportTime in", values, "lastexporttime");
            return (Criteria) this;
        }

        public Criteria andLastexporttimeNotIn(List<Date> values) {
            addCriterion("lastExportTime not in", values, "lastexporttime");
            return (Criteria) this;
        }

        public Criteria andLastexporttimeBetween(Date value1, Date value2) {
            addCriterion("lastExportTime between", value1, value2, "lastexporttime");
            return (Criteria) this;
        }

        public Criteria andLastexporttimeNotBetween(Date value1, Date value2) {
            addCriterion("lastExportTime not between", value1, value2, "lastexporttime");
            return (Criteria) this;
        }

        public Criteria andLastexportipIsNull() {
            addCriterion("lastExportIp is null");
            return (Criteria) this;
        }

        public Criteria andLastexportipIsNotNull() {
            addCriterion("lastExportIp is not null");
            return (Criteria) this;
        }

        public Criteria andLastexportipEqualTo(String value) {
            addCriterion("lastExportIp =", value, "lastexportip");
            return (Criteria) this;
        }

        public Criteria andLastexportipNotEqualTo(String value) {
            addCriterion("lastExportIp <>", value, "lastexportip");
            return (Criteria) this;
        }

        public Criteria andLastexportipGreaterThan(String value) {
            addCriterion("lastExportIp >", value, "lastexportip");
            return (Criteria) this;
        }

        public Criteria andLastexportipGreaterThanOrEqualTo(String value) {
            addCriterion("lastExportIp >=", value, "lastexportip");
            return (Criteria) this;
        }

        public Criteria andLastexportipLessThan(String value) {
            addCriterion("lastExportIp <", value, "lastexportip");
            return (Criteria) this;
        }

        public Criteria andLastexportipLessThanOrEqualTo(String value) {
            addCriterion("lastExportIp <=", value, "lastexportip");
            return (Criteria) this;
        }

        public Criteria andLastexportipLike(String value) {
            addCriterion("lastExportIp like", value, "lastexportip");
            return (Criteria) this;
        }

        public Criteria andLastexportipNotLike(String value) {
            addCriterion("lastExportIp not like", value, "lastexportip");
            return (Criteria) this;
        }

        public Criteria andLastexportipIn(List<String> values) {
            addCriterion("lastExportIp in", values, "lastexportip");
            return (Criteria) this;
        }

        public Criteria andLastexportipNotIn(List<String> values) {
            addCriterion("lastExportIp not in", values, "lastexportip");
            return (Criteria) this;
        }

        public Criteria andLastexportipBetween(String value1, String value2) {
            addCriterion("lastExportIp between", value1, value2, "lastexportip");
            return (Criteria) this;
        }

        public Criteria andLastexportipNotBetween(String value1, String value2) {
            addCriterion("lastExportIp not between", value1, value2, "lastexportip");
            return (Criteria) this;
        }

        public Criteria andLastexportuserIsNull() {
            addCriterion("lastExportUser is null");
            return (Criteria) this;
        }

        public Criteria andLastexportuserIsNotNull() {
            addCriterion("lastExportUser is not null");
            return (Criteria) this;
        }

        public Criteria andLastexportuserEqualTo(Long value) {
            addCriterion("lastExportUser =", value, "lastexportuser");
            return (Criteria) this;
        }

        public Criteria andLastexportuserNotEqualTo(Long value) {
            addCriterion("lastExportUser <>", value, "lastexportuser");
            return (Criteria) this;
        }

        public Criteria andLastexportuserGreaterThan(Long value) {
            addCriterion("lastExportUser >", value, "lastexportuser");
            return (Criteria) this;
        }

        public Criteria andLastexportuserGreaterThanOrEqualTo(Long value) {
            addCriterion("lastExportUser >=", value, "lastexportuser");
            return (Criteria) this;
        }

        public Criteria andLastexportuserLessThan(Long value) {
            addCriterion("lastExportUser <", value, "lastexportuser");
            return (Criteria) this;
        }

        public Criteria andLastexportuserLessThanOrEqualTo(Long value) {
            addCriterion("lastExportUser <=", value, "lastexportuser");
            return (Criteria) this;
        }

        public Criteria andLastexportuserIn(List<Long> values) {
            addCriterion("lastExportUser in", values, "lastexportuser");
            return (Criteria) this;
        }

        public Criteria andLastexportuserNotIn(List<Long> values) {
            addCriterion("lastExportUser not in", values, "lastexportuser");
            return (Criteria) this;
        }

        public Criteria andLastexportuserBetween(Long value1, Long value2) {
            addCriterion("lastExportUser between", value1, value2, "lastexportuser");
            return (Criteria) this;
        }

        public Criteria andLastexportuserNotBetween(Long value1, Long value2) {
            addCriterion("lastExportUser not between", value1, value2, "lastexportuser");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}